﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System.Diagnostics;
using System.Globalization;
using NUnit.Framework;
using Toulr.Models;

#endregion

namespace Toulr.Test.Models
{
    /// <summary>
    /// 测试
    /// </summary>
    [TestFixture]
    public class BaseModelFixture
    {
        //测试资源本地化支持
        [Test]
        public void ResourceTest()
        {
            var baseModel =new BaseModel("Test");
            Debug.Print(baseModel.GetString("ProductName"));
            Debug.Print(baseModel.GetString("Company"));
            Assert.NotNull(baseModel.GetString("ProductName"));
            Assert.NotNull(baseModel.GetString("Company"));
            baseModel.CurrentCultureInfo = new CultureInfo("en-US");
            Debug.Print(baseModel.GetString("ProductName"));
            Debug.Print(baseModel.GetString("Company"));
        }
    }
}